import LayoutIndex from '@/views/layout/index.vue';
import courseManagement from '@/views/courseManagement/index.vue';
import HomePage from '@/views/courseManagement/HomePage.vue';
import DetailPage from '@/views/courseManagement/DetailPage.vue';
import ReleaseBoot from '@/views/courseManagement/ReleaseBoot.vue';
import TeachingTeam from '@/views/courseManagement/TeachingTeam.vue';
import CourseBasicInformation from '@/views/courseManagement/CourseBasicInformation.vue';
import TeachingContent from '@/views/courseManagement/TeachingContent.vue';
import GradingRule from '@/views/courseManagement/GradingRule.vue';
import CourseNotice from '@/views/courseManagement/CourseNotice.vue';
import CourseSetting from '@/views/courseManagement/CourseSetting.vue';
import StudentMark from '@/views/courseManagement/StudentMark.vue';
import DataReport from '@/views/courseManagement/DataReport.vue';


const CourseManagementModule = {
  path: '/courseManagement',
  name: '',
  component: LayoutIndex,
  children: [
    {
      path: '',
      name: '',
      component: courseManagement,
      children: [
        {
          path: '',
          name: 'courseManagementHome',
          component: HomePage,
        },
        {
          path: 'detail',
          name: '',
          component: DetailPage,
          children: [
            {
              path: '',
              name: 'ReleaseBoot',
              meta: '引导',
              component: ReleaseBoot,
            },
            {
              path: 'teachingTeam',
              name: 'TeachingTeam',
              meta: '教学团队',
              component: TeachingTeam,
            },
            {
              path: 'courseBasicInformation',
              name: 'CourseBasicInformation',
              meta: '课程基本信息',
              component: CourseBasicInformation,
            },
            {
              path: 'teachingContent',
              name: 'TeachingContent',
              meta: '教学内容',
              component: TeachingContent,
            },
            {
              path: 'gradingRule',
              name: 'GradingRule',
              meta: '评分规则',
              component: GradingRule,
            },
            {
              path: 'courseNotice',
              name: 'CourseNotice',
              meta: '公告',
              component: CourseNotice,
            },
            {
              path: 'courseSetting',
              name: 'CourseSetting',
              meta: '设置',
              component: CourseSetting,
            },
            {
              path: 'studentMark',
              name: 'StudentMark',
              meta: '学生成绩',
              component: StudentMark,
            },
            {
              path: 'dataReport',
              name: 'DataReport',
              meta: {
                name: '数据报告',
                aa: true,
              },
              component: DataReport,
            },
            { path: '成绩导出模板设置' },
          ],
        },
      ],
    },
  ],
};
export default { CourseManagementModule };
